1. The thing I used this for wad to decode and encode BASE64. (-decode and-encode command switches). It has two annoying features here-for decode and encode it needs-----End Certificate-----and-----BEGIN certificate-----at begining and at Base64
Conversion between JAVA Hex and string, and java hexToHexStringPublic static String toHexString (int I) returns the String representation of an integer parameter in the hexadecimal notation.If the parameter is negative, the unsigned integer is 232.
Code in 1.c#
/// /// ///function: Converts a string content into a 16-encoded data encoding, and its inverse procedure is decode ///parameter description: br>///Strencode The original string that needs to be transformed ///the process of
' ==============================================================' Function: ASP server object built-in encoding function' Description: No corresponding decoding function' ==============================================================Function
'==============================================================
' Function: ASP server object built-in encoding function
' Description: No corresponding decoding function
'==============================================================
Function
>>> "Hello". Encode ("hex")
' 68656c6c6f '
The corresponding can also
>>> ' 68656c6c6f '. Decode ("hex")' Hello '
Check the manuals, and these codec are available.
Codec
Aliases
Operand type
Purpose
Base64_codec
During network programming, you often need to print the received data in hexadecimal format for easy viewing. Today we found that there is such a simple method in Python.
>>> "Hello". encode ("hex ")'68656c6c6f'
You can also
>>> '68656c6c6f'.
>>> "Hello". Encode ("hex")' 68656c6c6f '
The corresponding can also
>>> ' 68656c6c6f ' decode ("hex")' Hello '
I checked the manuals, and these codec are available.
Codec
Aliases
Operand type
Purpose
0x01 backgroundThe day before yesterday in a CTF topic, a blind question, in fact, blinds may also be able to echo the data, such as using DNS or HTTP logs to obtain data quickly, MySQL can use the Load_file () function to read data, and send data
String decoding:
There is a string:
' \\u4fee\\u6539\\u8282\\u70b9\\u72b6\\u6001\\u6210\\u529f '
To convert to:
U "\u4fee\u6539\u8282\u70b9\u72b6\u6001\u6210\u529f"
You can do this by
>>> a = ' \\u4fee\\u6539\\u8282\\u70b9\\u72b6\\u6001\\u6210
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.